Matthias Clasen [Tue, 5 Jan 2021 15:59:59 +0000 (10:59 -0500)]
popup: Mention the popover arrow in the docs
Suggested by Jonas.
Matthias Clasen [Tue, 5 Jan 2021 14:26:38 +0000 (14:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
some docs tweaks
See merge request GNOME/gtk!3036
Matthias Clasen [Sat, 2 Jan 2021 21:34:34 +0000 (16:34 -0500)]
docs: Cosmetics
Matthias Clasen [Tue, 5 Jan 2021 13:20:36 +0000 (08:20 -0500)]
docs: Flesh out Popup layout docs
We have nice illustrations for this, lets use them.
Yuri Chornoivan [Tue, 5 Jan 2021 08:08:44 +0000 (08:08 +0000)]
Update Ukrainian translation
Matthias Clasen [Tue, 5 Jan 2021 00:54:37 +0000 (00:54 +0000)]
Merge branch 'matthiasc/gl-media-stream' into 'master'
Use GL in the gstreamer media backend
See merge request GNOME/gtk!3027
Matthias Clasen [Mon, 4 Jan 2021 23:26:29 +0000 (18:26 -0500)]
gtk-demo: Use GtkVideo in the fishbowl
The demo is called 'Video', so we should actually
use a GtkVideo widget. Doing things this way has
the advantage that we get GL support, which wasn't
working with GtkPicture.
Matthias Clasen [Fri, 1 Jan 2021 17:12:35 +0000 (12:12 -0500)]
media: Only force GL if we're using a GL renderer
When we are not using a GL renderer, getting GL textures
is no advantage to us, so don't make gstreamer send its
frames as GL memory in this case.
Matthias Clasen [Fri, 1 Jan 2021 16:31:49 +0000 (11:31 -0500)]
media: Convince gstreamer to deliver GL memory
Use a glsinkbin to make gstreamer deliver GL memory.
Benjamin Otte [Tue, 29 Dec 2020 19:11:51 +0000 (14:11 -0500)]
media: Add support for OpenGL to GtkGstMediaFile
Matthias Clasen [Tue, 29 Dec 2020 20:55:28 +0000 (15:55 -0500)]
video: Realize the media stream before setting a file
This makes it so that we obtain a GL context before
creating the GstSink, so we at least advertise our
ability to handle GL buffer.
Gstreamer still won't send us any.
Matthias Clasen [Mon, 4 Jan 2021 18:14:00 +0000 (18:14 +0000)]
Merge branch 'wip/jimmac/popover-separators' into 'master'
Adwaita: increase cotrast of popover separators
Closes #3535
See merge request GNOME/gtk!3033
Jakub Steiner [Mon, 4 Jan 2021 16:53:40 +0000 (17:53 +0100)]
Adwaita: increase contrast of popover separators
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3535
Matthias Clasen [Mon, 4 Jan 2021 13:55:08 +0000 (13:55 +0000)]
Merge branch 'window-geometry-info' into 'master'
gtk/window: remove GtkWindowGeometryInfo from public header file
See merge request GNOME/gtk!3028
Aurimas Černius [Mon, 4 Jan 2021 12:09:40 +0000 (14:09 +0200)]
Updated Lithuanian translation
Philipp Kiemle [Sun, 3 Jan 2021 13:41:25 +0000 (13:41 +0000)]
Update German translation
Philipp Kiemle [Sun, 3 Jan 2021 13:40:13 +0000 (13:40 +0000)]
Update German translation
Matthias Clasen [Sun, 3 Jan 2021 01:17:19 +0000 (20:17 -0500)]
NEWS: Updates
Matthias Clasen [Sat, 2 Jan 2021 19:04:26 +0000 (19:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
video: Tweak the docs
See merge request GNOME/gtk!3026
Matthias Clasen [Sat, 2 Jan 2021 16:17:26 +0000 (11:17 -0500)]
video: Tweak the docs
Point out the limitations and use cases of GtkVideo
and mention that GtkPicture can display video just fine.
Matthias Clasen [Sat, 2 Jan 2021 15:49:46 +0000 (15:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
video: Pause on unset too
See merge request GNOME/gtk!3025
Florentina Mușat [Sat, 2 Jan 2021 11:21:43 +0000 (11:21 +0000)]
Update Romanian translation
Matthias Clasen [Sat, 2 Jan 2021 05:06:41 +0000 (00:06 -0500)]
video: Pause on unset too
When new media stream is set on the GtkVideo
widget and we're autoplaying, pause the old one.
Otherwise, the music keeps playing unexpectedly.
Matthias Clasen [Fri, 1 Jan 2021 23:33:01 +0000 (23:33 +0000)]
Merge branch 'wip/chergert/fix-macos-compute-size' into 'master'
macos: fix compute_size and request_layout
Closes #3532
See merge request GNOME/gtk!3023
Matthias Clasen [Fri, 1 Jan 2021 22:48:11 +0000 (22:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3506 and #3530
See merge request GNOME/gtk!3024
Benjamin Otte [Fri, 1 Jan 2021 21:54:22 +0000 (21:54 +0000)]
Merge branch 'video-stop' into 'master'
video: Stop playing when appropriate
See merge request GNOME/gtk!3022
Matthias Clasen [Fri, 1 Jan 2021 21:25:54 +0000 (16:25 -0500)]
video: Be consistent about play/pause
Always check that the stream is prepared, and the
widget is mapped, before calling gtk_media_stream_play().
Christian Hergert [Fri, 1 Jan 2021 21:11:29 +0000 (13:11 -0800)]
macos: implement compute_size and request_layout
These functions were not implemented when the sizing changes
landed before GTK 4 was released. This fixes an issue with non-
resizeable windows not reacting to layout changes.
Fixes #3532
Christian Hergert [Fri, 1 Jan 2021 21:09:57 +0000 (13:09 -0800)]
macos: avoid setHasShadow unless shadow changes
Christian Hergert [Thu, 31 Dec 2020 19:07:07 +0000 (11:07 -0800)]
macos: fix toplevel present function prototype
No need to return anything here.
Matthias Clasen [Fri, 1 Jan 2021 20:07:25 +0000 (15:07 -0500)]
video: Stop playing when appropriate
When the widget gets unrealized or hidden, pause
the mediastream. Otherwise, audio might keep playing
unexpectedly.
Matthias Clasen [Fri, 1 Jan 2021 16:02:57 +0000 (11:02 -0500)]
center layout: Fix handling of expanding center child
We were not taking spacing into account when adjusting
the size of an expanding center child, causing it to slip
under the end child at times.
Fixes: #3506
Matthias Clasen [Fri, 1 Jan 2021 15:39:08 +0000 (15:39 +0000)]
Merge branch 'wip/chergert/fix-macos-window-check' into 'master'
macos: ensure GdkMacosWindow in surface discovery
Closes #3533
See merge request GNOME/gtk!3021
Matthias Clasen [Fri, 1 Jan 2021 15:14:01 +0000 (10:14 -0500)]
docs: Flesh out the gtk4-builder-tool man page
Add some details about the --3to4 conversion, and
set expectations.
Yuri Chornoivan [Fri, 1 Jan 2021 14:50:35 +0000 (14:50 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 1 Jan 2021 14:40:40 +0000 (09:40 -0500)]
docs: Complete a sentence
Fixes: #3530
Matthias Clasen [Fri, 1 Jan 2021 14:23:08 +0000 (14:23 +0000)]
Merge branch 'encode-symbolic-debug' into 'master'
gtk4-encode-symbolic: Add debug output
See merge request GNOME/gtk!3017
Christian Hergert [Thu, 31 Dec 2020 18:44:19 +0000 (10:44 -0800)]
macos: ensure GdkMacosWindow in surface discovery
We want to ignore windows that are not related to those controlled
by the GDK backend.
Fixes #3533
Christian Hergert [Thu, 31 Dec 2020 18:13:46 +0000 (18:13 +0000)]
Merge branch 'macos-mojave' into 'master'
macos: do not crash in mojave
See merge request GNOME/gtk!3020
Ignacio Casal Quinteiro [Thu, 31 Dec 2020 10:35:04 +0000 (11:35 +0100)]
macos: do not crash in mojave
The localizedName property is not available in Mojave
so just ifdef in that case the code out.
David Lechner [Wed, 30 Dec 2020 07:32:27 +0000 (01:32 -0600)]
gtk/window: remove GtkWindowGeometryInfo from public header file
GtkWindowGeometryInfo is only used by static methods in gtkwindow.c
so it doesn't need to be in the public header file.
Matthias Clasen [Wed, 30 Dec 2020 03:34:51 +0000 (03:34 +0000)]
Merge branch 'revert-
224c2674' into 'master'
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
See merge request GNOME/gtk!3018
Matthias Clasen [Wed, 30 Dec 2020 03:32:18 +0000 (03:32 +0000)]
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
This reverts merge request !3011
Matthias Clasen [Wed, 30 Dec 2020 03:32:05 +0000 (03:32 +0000)]
Merge branch 'gtk_egl_wayland' into 'master'
Expose gdk_wayland_surface_get_wl_egl_window()
See merge request GNOME/gtk!3011
Matthias Clasen [Wed, 30 Dec 2020 02:22:16 +0000 (21:22 -0500)]
gtk4-encode-symbolic: Add debug output
Add a --debug option that makes this tool produce
some debug output that can be helpful in tracking
down why symbolic svgs are broken.
Matthias Clasen [Tue, 29 Dec 2020 17:47:01 +0000 (17:47 +0000)]
Merge branch 'mcatanzaro/#3509' into 'master'
message dialog: use title style only if there is secondary text
Closes #3509
See merge request GNOME/gtk!3015
Matthias Clasen [Tue, 29 Dec 2020 17:41:49 +0000 (17:41 +0000)]
Merge branch 'fix-menu-alignment' into 'master'
Fix menu item alignment with submenus
See merge request GNOME/gtk!3016
Michael Catanzaro [Tue, 29 Dec 2020 17:12:59 +0000 (11:12 -0600)]
message dialog: use title style only if there is secondary text
If there is no secondary text, then the primary text is just a message,
not a title, and should not use title style.
This partially reverts
1e3ec7c1f993ec8cab4c6608b968e78f9028d662. The
message dialog nown looks like it used to in GTK 3. However, it's still
styled only using a style class rather than using pango markup, as in
GTK 3.
Fixes #3509
Matthias Clasen [Tue, 29 Dec 2020 17:10:35 +0000 (12:10 -0500)]
Fix menu item alignment with submenus
We were not aligning model button labels with nesting
submenus with indicators in their containing menu.
This was visible in the application demo of gtk4-demo.
Timm Bäder [Tue, 29 Dec 2020 16:58:55 +0000 (16:58 +0000)]
Merge branch 'xndcn/fix-shader' into 'master'
gl: Fix implicit leaking of shader object
See merge request GNOME/gtk!3013
Matthias Clasen [Tue, 29 Dec 2020 16:36:09 +0000 (16:36 +0000)]
Merge branch 'ebassi/issue-3522' into 'master'
Fix the Vulkan header check for VK_RESULT_RANGE_SIZE
Closes #3522
See merge request GNOME/gtk!3009
xndcn [Tue, 29 Dec 2020 14:29:37 +0000 (22:29 +0800)]
gl: Fix implicit leaking of shader object
According to OpenGL spec, a shader object will only be flagged
for deletion unless it has been detached; when a program object
is deleted, those shader objects attached to it will be detached
but not deleted unless they have already been flagged for deletion.
So we shall detach a shader object before it is deleted, and delete
it before the program object is deleted best.
Timm Bäder [Tue, 29 Dec 2020 07:49:12 +0000 (07:49 +0000)]
Merge branch 'wip/chergert/volatile-fixes' into 'master'
types: fix various use of volatile in type registration
See merge request GNOME/gtk!2865
Vivek Kasireddy [Tue, 29 Dec 2020 02:20:04 +0000 (18:20 -0800)]
gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()
Some GTK based applications such as Qemu UI create and manage
EGLSurfaces associated with the relevant GdkSurfaces. In order to create
an EGLSurface, there needs to be a way to pass the native window
object to eglCreateWindowSurface(). While running in an X environment,
the native window object can be obtained by calling
gdk_x11_surface_get_xid(). Likewise, the native window object can be
obtained by calling gdk_wayland_surface_get_wl_egl_window() while
running in a Wayland environment. Therefore, this API needs to be
exposed to apps.
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Emmanuele Bassi [Mon, 28 Dec 2020 18:41:18 +0000 (18:41 +0000)]
Fix the Vulkan header check for VK_RESULT_RANGE_SIZE
The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not
1.2.142.
Fixes: #3522
Benjamin Otte [Mon, 28 Dec 2020 14:54:30 +0000 (14:54 +0000)]
Merge branch 'gtkmediafile-pixel-aspect-ratio' into 'master'
gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio
Closes #3516
See merge request GNOME/gtk!3007
Asier Sarasua Garmendia [Sun, 27 Dec 2020 17:56:02 +0000 (17:56 +0000)]
Update Basque translation
Sebastian Dröge [Sun, 27 Dec 2020 16:24:26 +0000 (18:24 +0200)]
gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3516
Matthias Clasen [Sun, 27 Dec 2020 17:06:52 +0000 (17:06 +0000)]
Merge branch 'wip/jtojnar/trivial-fix-pc-vulcan' into 'master'
build: Fix vulkan reference in pc file
Closes #3517
See merge request GNOME/gtk!3006
Fran Dieguez [Sun, 27 Dec 2020 16:56:56 +0000 (16:56 +0000)]
Update Galician translation
Fran Dieguez [Sun, 27 Dec 2020 16:51:38 +0000 (16:51 +0000)]
Update Galician translation
Benjamin Otte [Sun, 27 Dec 2020 06:17:36 +0000 (06:17 +0000)]
Merge branch 'gtkgstsink-unmap-only-when-done' into 'master'
gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify
See merge request GNOME/gtk!3003
Jan Tojnar [Sun, 27 Dec 2020 05:42:29 +0000 (06:42 +0100)]
build: Fix vulkan reference in pc file
A mistake in string concatenation caused the vulcan dependency to be omitted.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3517
Matthias Clasen [Sun, 27 Dec 2020 05:21:26 +0000 (05:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3004
Matthias Clasen [Sun, 27 Dec 2020 04:32:26 +0000 (04:32 +0000)]
Merge branch 'gtkclip' into 'master'
gtk: remove GtkClipboard leftovers
See merge request GNOME/gtk!2991
Matthias Clasen [Sun, 27 Dec 2020 04:30:38 +0000 (04:30 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'
gtk/gesturestylus: Convert motion history from surface coordinates
Closes #3491
See merge request GNOME/gtk!2999
Sebastian Dröge [Sat, 26 Dec 2020 12:26:23 +0000 (14:26 +0200)]
gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify
The memory pointed to by GstVideoFrame::plane_data becomes invalid after
unmapping causing the GBytes to point at some random memory if the
unmapping is not deferred until its destroy notify.
When the GStreamer buffer is backed by normal system memory this is not
a problem but if it is backed by e.g. an OpenGL texture, dmabuf or some
other hardware-specific memory this will otherwise cause interesting
problems.
Benjamin Otte [Fri, 25 Dec 2020 18:05:11 +0000 (18:05 +0000)]
Merge branch 'unused-static-inline' into 'master'
Remove unused static inline function
See merge request GNOME/gtk!3002
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 15:11:23 +0000 (16:11 +0100)]
Remove unused static inline function
This was causing a warning on AArch64 since __LITTLE_ENDIAN__ and
__BIG_ENDIAN__ weren’t set, but the functions were actually completely
unused.
Benjamin Otte [Fri, 25 Dec 2020 01:36:34 +0000 (01:36 +0000)]
Merge branch 'gles-gears' into 'master'
Fix gtk4-demo’s gears demo on OpenGL ES
See merge request GNOME/gtk!3000
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 00:29:03 +0000 (01:29 +0100)]
Fix some of gtk4-demo’s transitions example on OpenGL ES
Same issue as the previous commit, int+float is error, and pow() only
works on floats.
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 00:21:08 +0000 (01:21 +0100)]
Fix gtk4-demo’s gears demo on OpenGL ES
Here is a command to reproduce this testcase:
GDK_DEBUG=gl-gles gtk4-demo --run gears
Without this patch, Mesa throws this compile error:
0:130(13): error: no matching function for call to `mod(error, float)'; candidates are:
This is caused by `u_rotation - 90` being of type error since
`u_rotation` is a float and it’s illegal to subtract it with an integer.
Carlos Garnacho [Thu, 24 Dec 2020 18:55:39 +0000 (19:55 +0100)]
gtk/gesturestylus: Convert motion history from surface coordinates
Motion history coordinates are based on GdkSurface coordinates. Transform
the coordinates from the GtkNative they are received on, accounting for the
possible transforms (e.g. due to window borders and shadows).
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3491
Matthias Clasen [Thu, 24 Dec 2020 07:13:22 +0000 (07:13 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!2997
Benjamin Otte [Wed, 23 Dec 2020 19:04:29 +0000 (20:04 +0100)]
gdkarray: Add a "stolen" boolean to splice()
If set to TRUE, does not call the free func for the removed items.
This can be used to move items between arrays without having to do the
refcounting dance.
Benjamin Otte [Tue, 24 Nov 2020 13:19:06 +0000 (14:19 +0100)]
listview: Use the correct scroll policy
Use the horizontal policy for horizontal decisions, not the vertical
one.
This broke in
0011ce949c3580e02c4b2c3d83584a6c6e82090c.
Benjamin Otte [Wed, 25 Nov 2020 14:49:58 +0000 (15:49 +0100)]
docs: Put render nodes in their own sections
Benjamin Otte [Wed, 2 Dec 2020 07:50:16 +0000 (08:50 +0100)]
roundedbox: Remove unused API
Benjamin Otte [Tue, 15 Dec 2020 23:26:16 +0000 (00:26 +0100)]
picture: Fix copy/paste error in docs
Benjamin Otte [Wed, 16 Dec 2020 01:22:26 +0000 (02:22 +0100)]
video: When autoplaying, start playing once the video is prepared
This fixe video sources with longer loading times not automatically
playing.
Benjamin Otte [Thu, 17 Dec 2020 21:20:17 +0000 (22:20 +0100)]
gtk-demo: Don't put the search bar in the scroll area
1. That's a bad idea UI wise as you can't see the search after you
scrolled.
2. That's a bad idea code-wise because Listviews need to be put into
a ScrolledWindow or they won't scroll.
Benjamin Otte [Thu, 24 Dec 2020 05:32:17 +0000 (06:32 +0100)]
rendernode: Bail if matrix is invalid
Invalid matrices are okay in GSK (and GL), but not in Cairo.
Testcase included.
A S Alam [Wed, 23 Dec 2020 19:48:28 +0000 (19:48 +0000)]
Update Punjabi translation
Danial Behzadi [Wed, 23 Dec 2020 15:53:07 +0000 (15:53 +0000)]
Update Persian translation
Matthias Clasen [Wed, 23 Dec 2020 14:03:07 +0000 (09:03 -0500)]
colorbutton: Correct the css docs
Mention the wrapper colorbutton node.
Matthias Clasen [Wed, 23 Dec 2020 13:57:04 +0000 (08:57 -0500)]
fontbutton: Correct the css docs
Mention the wrapper fontbutton node.
Matthias Clasen [Wed, 23 Dec 2020 13:45:51 +0000 (08:45 -0500)]
menubutton: Correct the css docs
We are using menubutton instead of button.popup now.
Matthias Clasen [Wed, 23 Dec 2020 05:48:43 +0000 (00:48 -0500)]
modelbutton: Center titles
The centering of titles was broken in
b5b81dea7f2eff28.
Make it mostly work again by adding an empty end indicator.
Related: #3405
Matthias Clasen [Wed, 23 Dec 2020 03:01:55 +0000 (03:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
window: Release application in destroy
See merge request GNOME/gtk!2994
Matthias Clasen [Wed, 23 Dec 2020 01:34:13 +0000 (20:34 -0500)]
window: Release application in destroy
We used to do this; it was lost in some life-cycle
reshuffling.
Marc-André Lureau [Tue, 22 Dec 2020 12:36:13 +0000 (16:36 +0400)]
gtk: remove GtkClipboard leftovers
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Matthias Clasen [Tue, 22 Dec 2020 04:53:31 +0000 (04:53 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
See merge request GNOME/gtk!2990
Matthias Clasen [Tue, 22 Dec 2020 02:29:03 +0000 (02:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2988
Matthias Clasen [Mon, 21 Dec 2020 23:04:16 +0000 (18:04 -0500)]
Fix warnings with Vulkan < 162
Tiring to watch the Vulkan people stumble through
ABI and API compat, but what can you do.
Matthias Clasen [Mon, 21 Dec 2020 22:49:42 +0000 (22:49 +0000)]
Merge branch 'mcatanzaro/fix-gtk-builder-tool' into 'master'
Fix buffer overruns in 'gtk-builder-tool simplify'
See merge request GNOME/gtk!2987
Matthias Clasen [Mon, 21 Dec 2020 22:43:29 +0000 (17:43 -0500)]
modelbutton: Remove an unused field
We're not using the centered field anymore.
Michael Catanzaro [Mon, 21 Dec 2020 21:35:51 +0000 (15:35 -0600)]
Fix buffer overruns in 'gtk-builder-tool simplify'
Oops, here we allocate only one byte for each pointer we want to store.
We need to multiply by the size of a pointer.
Emmanuele Bassi [Mon, 21 Dec 2020 20:04:26 +0000 (20:04 +0000)]
Merge branch 'fix-printbackends' into 'master'
Fix the value for the print-backends setting
Closes #3486
See merge request GNOME/gtk!2986
Matthias Clasen [Mon, 21 Dec 2020 19:22:38 +0000 (19:22 +0000)]
Merge branch 'ebassi/docs-for-master' into 'master'
Ebassi/docs for master
See merge request GNOME/gtk!2983
Matthias Clasen [Mon, 21 Dec 2020 19:10:03 +0000 (14:10 -0500)]
Fix the value for the print-backends setting
This was broken in the meson conversion, causing
us to default to "" instead of the built print
backends.
Fixes: #3486